@steadyschedule
@smoke
Feature: Steady Schedule Functionalities
Description: As a user of the system
I want to manage steady schedules
So that I can maintain and track steady assignments
File name: steadySchedule.feature
Relative path: features/steadySchedule.feature
Given
TR user logged into the application
And
User navigates to the steady schedule page
And
User clicks on GO button
And
Select Job code for some steadies under CO tab
locator.fill: Error: strict mode violation: locator('xpath=//textarea[@id=\'addComment\']') resolved to 8 elements:
1) (textarea name="" rows="2" cols="30" id="addComment" maxle…) (/textarea) aka locator('#remarks').getByPlaceholder('Enter your remarks here...')
2) (textarea rows="5" cols="20" id="addComment" maxlength="10…) (/textarea) aka locator('.cmts-textarea ) #addComment').first()
3) (textarea rows="5" cols="20" id="addComment" maxlength="10…) (/textarea) aka locator('td:nth-child(2) ) #addComment')
4) (textarea rows="5" cols="20" id="addComment" maxlength="10…) (/textarea) aka locator('td:nth-child(3) ) #addComment')
5) (textarea rows="5" cols="20" id="addComment" maxlength="10…) (/textarea) aka locator('td:nth-child(4) ) #addComment')
6) (textarea rows="5" cols="20" id="addComment" maxlength="10…) (/textarea) aka locator('td:nth-child(5) ) #addComment')
7) (textarea rows="5" cols="20" id="addComment" maxlength="10…) (/textarea) aka locator('td:nth-child(6) ) #addComment')
8) (textarea rows="5" cols="20" id="addComment" maxlength="10…) (/textarea) aka locator('td:nth-child(7) ) #addComment')
=========================== logs ===========================
waiting for locator('xpath=//textarea[@id=\'addComment\']')
============================================================
at SteadySchedulePage.(anonymous) (C:\SOTA\src\pages\steadySchedule.page.ts:190:91)
at step (C:\SOTA\src\pages\steadySchedule.page.ts:33:23)
at Object.next (C:\SOTA\src\pages\steadySchedule.page.ts:14:53)
at fulfilled (C:\SOTA\src\pages\steadySchedule.page.ts:5:58)
And
Verify total and guarantee value
// With Callbacks
And (/^Verify total and guarantee value$/, (callback) => {
// Write code here that turns the phrase above into concrete actions
callback(null, 'pending');
});
// With Promises
And (/^Verify total and guarantee value$/, () => {
// Write code here that turns the phrase above into concrete actions
return Promise.resolve('pending');
});
And
User clicks on Save button